home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
prgtools
/
gnustuff
/
tos
/
gawk
/
gawk213b.zoo
/
test
/
numfunc.awk
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
AWK Script
|
1991-04-06
|
297 b
|
20 lines
BEGIN {
y = 8
x = 1
while (x < 256) {
print "arctan", y/x, atan2(y , x)
x += x
}
print
pi8 = atan2(1, 1) / 2
arg = 0
for (i = 0; i <= 8; i++) {
print "cos sin", arg, cos(arg), sin(arg)
arg += pi8
}
print
for (i = -5; i<= 5; i++) {
print "exp log", i, exp(i), log(exp(i))
}
}